package cn.net.shuxing.yifu.common.service;

import cn.net.shuxing.yifu.common.bean.Role;
import cn.net.shuxing.yifu.common.mapper.RoleMapper;
import org.springframework.stereotype.Service;

@Service
public class RoleService extends BaseService<Role, RoleMapper>{


    public RoleService insertRole(String roleName, int roleGroupId)
    {
        Role role = new Role();
        role.setName(roleName);
        role.setRoleGroupId(roleGroupId);
        mapper.insertSelective(role);
        return this;
    }
}
